#!/usr/local/bin/python3
# coding = utf-8

# @Time    :   2017/1/9 23:19
# @User    :   wangjh

import pandas as pd

dic = dict()
users = list()
for i in list(range(1, 9)):
    user = dict()
    user['name'] = 'wangjh0' + str(i)
    user['age'] = i * 10 + 11
    user['email'] = 'wjh7563811' + str(i * 10) + '@qq.com'
    users.append(user)
a = pd.DataFrame(users)
df = a[a['age'] > 50]
print(df[df['name'] < 'wangjh07'])
# print(type(a))
# print(a.iloc(2))
print(a.head(3))
print(a.tail(3))
